Fix crash in subrip on start of file.
authorrobertl <robertl>
Sun, 29 Aug 2010 19:45:52 +0000 (19:45 +0000)
committerrobertl <robertl>
Sun, 29 Aug 2010 19:45:52 +0000 (19:45 +0000)
subrip.c

index c347c398cad88636420654845e533bb98deda7d7..0958ccba3fcf136020e566a2e7c0381b89c10ca5 100644 (file)
--- a/subrip.c
+++ b/subrip.c
@@ -157,7 +157,7 @@ subrip_trkpt_pr(const waypoint *waypointp)
         * way of solving this should be trivial to you :-)
         */
        {
-               time_offset = sync_time(prevwpp->creation_time, opt_videotime);
+               time_offset = sync_time(waypointp->creation_time, opt_videotime);
        }
        
        if (prevwpp)